Skip to content

Saving submissions#6

Merged
toximu merged 6 commits intomainfrom
saving-solutions
Mar 18, 2026
Merged

Saving submissions#6
toximu merged 6 commits intomainfrom
saving-solutions

Conversation

@toximu
Copy link
Contributor

@toximu toximu commented Mar 17, 2026

S3 and Redis integration.

  1. Run docker compose up -d
  2. Run ./gradlew bootRun

@toximu toximu requested a review from MhlvDenis March 17, 2026 12:14
@@ -0,0 +1,8 @@
package com.codzilla.backend.Submissions;

public record Submission(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше сделать

public record Submission(
  UUID id,
  UUID userId,
  byte[] content,
  Language language
) {
}

public enum Language { CPP }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а для юзеров сделать id uuid primary key и потом повесить индекс на поле email

app.security.jwt.access-token-ttl=10s
app.security.jwt.refresh-token-ttl=60s

app.submission.s3.endpoint=http://localhost:9000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

все продовые конфигурации только через переменные окружения

@toximu toximu merged commit 2ea80f1 into main Mar 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants